3.525 \(\int \frac{(i+j x) (a+b \log (c (d (e+f x)^p)^q))}{g+h x} \, dx\)

Optimal. Leaf size=129 \[ \frac{b p q (h i-g j) \text{PolyLog}\left (2,-\frac{h (e+f x)}{f g-e h}\right )}{h^2}+\frac{(h i-g j) \log \left (\frac{f (g+h x)}{f g-e h}\right ) \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{h^2}+\frac{a j x}{h}+\frac{b j (e+f x) \log \left (c \left (d (e+f x)^p\right )^q\right )}{f h}-\frac{b j p q x}{h} \]

[Out]

(a*j*x)/h - (b*j*p*q*x)/h + (b*j*(e + f*x)*Log[c*(d*(e + f*x)^p)^q])/(f*h) + ((h*i - g*j)*(a + b*Log[c*(d*(e +
 f*x)^p)^q])*Log[(f*(g + h*x))/(f*g - e*h)])/h^2 + (b*(h*i - g*j)*p*q*PolyLog[2, -((h*(e + f*x))/(f*g - e*h))]
)/h^2

________________________________________________________________________________________

Rubi [A]  time = 0.332362, antiderivative size = 129, normalized size of antiderivative = 1., number of steps used = 9, number of rules used = 7, integrand size = 31, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.226, Rules used = {2418, 2389, 2295, 2394, 2393, 2391, 2445} \[ \frac{b p q (h i-g j) \text{PolyLog}\left (2,-\frac{h (e+f x)}{f g-e h}\right )}{h^2}+\frac{(h i-g j) \log \left (\frac{f (g+h x)}{f g-e h}\right ) \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{h^2}+\frac{a j x}{h}+\frac{b j (e+f x) \log \left (c \left (d (e+f x)^p\right )^q\right )}{f h}-\frac{b j p q x}{h} \]

Antiderivative was successfully verified.

[In]

Int[((i + j*x)*(a + b*Log[c*(d*(e + f*x)^p)^q]))/(g + h*x),x]

[Out]

(a*j*x)/h - (b*j*p*q*x)/h + (b*j*(e + f*x)*Log[c*(d*(e + f*x)^p)^q])/(f*h) + ((h*i - g*j)*(a + b*Log[c*(d*(e +
 f*x)^p)^q])*Log[(f*(g + h*x))/(f*g - e*h)])/h^2 + (b*(h*i - g*j)*p*q*PolyLog[2, -((h*(e + f*x))/(f*g - e*h))]
)/h^2

Rule 2418

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.)*(RFx_), x_Symbol] :> With[{u = ExpandIntegrand[
(a + b*Log[c*(d + e*x)^n])^p, RFx, x]}, Int[u, x] /; SumQ[u]] /; FreeQ[{a, b, c, d, e, n}, x] && RationalFunct
ionQ[RFx, x] && IntegerQ[p]

Rule 2389

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.), x_Symbol] :> Dist[1/e, Subst[Int[(a + b*Log[c*
x^n])^p, x], x, d + e*x], x] /; FreeQ[{a, b, c, d, e, n, p}, x]

Rule 2295

Int[Log[(c_.)*(x_)^(n_.)], x_Symbol] :> Simp[x*Log[c*x^n], x] - Simp[n*x, x] /; FreeQ[{c, n}, x]

Rule 2394

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))/((f_.) + (g_.)*(x_)), x_Symbol] :> Simp[(Log[(e*(f +
g*x))/(e*f - d*g)]*(a + b*Log[c*(d + e*x)^n]))/g, x] - Dist[(b*e*n)/g, Int[Log[(e*(f + g*x))/(e*f - d*g)]/(d +
 e*x), x], x] /; FreeQ[{a, b, c, d, e, f, g, n}, x] && NeQ[e*f - d*g, 0]

Rule 2393

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))]*(b_.))/((f_.) + (g_.)*(x_)), x_Symbol] :> Dist[1/g, Subst[Int[(a +
 b*Log[1 + (c*e*x)/g])/x, x], x, f + g*x], x] /; FreeQ[{a, b, c, d, e, f, g}, x] && NeQ[e*f - d*g, 0] && EqQ[g
 + c*(e*f - d*g), 0]

Rule 2391

Int[Log[(c_.)*((d_) + (e_.)*(x_)^(n_.))]/(x_), x_Symbol] :> -Simp[PolyLog[2, -(c*e*x^n)]/n, x] /; FreeQ[{c, d,
 e, n}, x] && EqQ[c*d, 1]

Rule 2445

Int[((a_.) + Log[(c_.)*((d_.)*((e_.) + (f_.)*(x_))^(m_.))^(n_)]*(b_.))^(p_.)*(u_.), x_Symbol] :> Subst[Int[u*(
a + b*Log[c*d^n*(e + f*x)^(m*n)])^p, x], c*d^n*(e + f*x)^(m*n), c*(d*(e + f*x)^m)^n] /; FreeQ[{a, b, c, d, e,
f, m, n, p}, x] &&  !IntegerQ[n] &&  !(EqQ[d, 1] && EqQ[m, 1]) && IntegralFreeQ[IntHide[u*(a + b*Log[c*d^n*(e
+ f*x)^(m*n)])^p, x]]

Rubi steps

\begin{align*} \int \frac{(525+j x) \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{g+h x} \, dx &=\operatorname{Subst}\left (\int \frac{(525+j x) \left (a+b \log \left (c d^q (e+f x)^{p q}\right )\right )}{g+h x} \, dx,c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\operatorname{Subst}\left (\int \left (\frac{j \left (a+b \log \left (c d^q (e+f x)^{p q}\right )\right )}{h}+\frac{(525 h-g j) \left (a+b \log \left (c d^q (e+f x)^{p q}\right )\right )}{h (g+h x)}\right ) \, dx,c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\operatorname{Subst}\left (\frac{j \int \left (a+b \log \left (c d^q (e+f x)^{p q}\right )\right ) \, dx}{h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )+\operatorname{Subst}\left (\frac{(525 h-g j) \int \frac{a+b \log \left (c d^q (e+f x)^{p q}\right )}{g+h x} \, dx}{h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\frac{a j x}{h}+\frac{(525 h-g j) \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right ) \log \left (\frac{f (g+h x)}{f g-e h}\right )}{h^2}+\operatorname{Subst}\left (\frac{(b j) \int \log \left (c d^q (e+f x)^{p q}\right ) \, dx}{h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )-\operatorname{Subst}\left (\frac{(b f (525 h-g j) p q) \int \frac{\log \left (\frac{f (g+h x)}{f g-e h}\right )}{e+f x} \, dx}{h^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\frac{a j x}{h}+\frac{(525 h-g j) \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right ) \log \left (\frac{f (g+h x)}{f g-e h}\right )}{h^2}+\operatorname{Subst}\left (\frac{(b j) \operatorname{Subst}\left (\int \log \left (c d^q x^{p q}\right ) \, dx,x,e+f x\right )}{f h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )-\operatorname{Subst}\left (\frac{(b (525 h-g j) p q) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{h x}{f g-e h}\right )}{x} \, dx,x,e+f x\right )}{h^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\frac{a j x}{h}-\frac{b j p q x}{h}+\frac{b j (e+f x) \log \left (c \left (d (e+f x)^p\right )^q\right )}{f h}+\frac{(525 h-g j) \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right ) \log \left (\frac{f (g+h x)}{f g-e h}\right )}{h^2}+\frac{b (525 h-g j) p q \text{Li}_2\left (-\frac{h (e+f x)}{f g-e h}\right )}{h^2}\\ \end{align*}

Mathematica [A]  time = 0.119452, size = 120, normalized size = 0.93 \[ \frac{b p q (h i-g j) \text{PolyLog}\left (2,\frac{h (e+f x)}{e h-f g}\right )+(h i-g j) \log \left (\frac{f (g+h x)}{f g-e h}\right ) \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )+a h j x+\frac{b h j (e+f x) \log \left (c \left (d (e+f x)^p\right )^q\right )}{f}-b h j p q x}{h^2} \]

Antiderivative was successfully verified.

[In]

Integrate[((i + j*x)*(a + b*Log[c*(d*(e + f*x)^p)^q]))/(g + h*x),x]

[Out]

(a*h*j*x - b*h*j*p*q*x + (b*h*j*(e + f*x)*Log[c*(d*(e + f*x)^p)^q])/f + (h*i - g*j)*(a + b*Log[c*(d*(e + f*x)^
p)^q])*Log[(f*(g + h*x))/(f*g - e*h)] + b*(h*i - g*j)*p*q*PolyLog[2, (h*(e + f*x))/(-(f*g) + e*h)])/h^2

________________________________________________________________________________________

Maple [F]  time = 0.645, size = 0, normalized size = 0. \begin{align*} \int{\frac{ \left ( jx+i \right ) \left ( a+b\ln \left ( c \left ( d \left ( fx+e \right ) ^{p} \right ) ^{q} \right ) \right ) }{hx+g}}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((j*x+i)*(a+b*ln(c*(d*(f*x+e)^p)^q))/(h*x+g),x)

[Out]

int((j*x+i)*(a+b*ln(c*(d*(f*x+e)^p)^q))/(h*x+g),x)

________________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \begin{align*} a j{\left (\frac{x}{h} - \frac{g \log \left (h x + g\right )}{h^{2}}\right )} + \frac{a i \log \left (h x + g\right )}{h} + \int \frac{{\left (j \log \left (c\right ) + j \log \left (d^{q}\right )\right )} b x +{\left (i \log \left (c\right ) + i \log \left (d^{q}\right )\right )} b +{\left (b j x + b i\right )} \log \left ({\left ({\left (f x + e\right )}^{p}\right )}^{q}\right )}{h x + g}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((j*x+i)*(a+b*log(c*(d*(f*x+e)^p)^q))/(h*x+g),x, algorithm="maxima")

[Out]

a*j*(x/h - g*log(h*x + g)/h^2) + a*i*log(h*x + g)/h + integrate(((j*log(c) + j*log(d^q))*b*x + (i*log(c) + i*l
og(d^q))*b + (b*j*x + b*i)*log(((f*x + e)^p)^q))/(h*x + g), x)

________________________________________________________________________________________

Fricas [F]  time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{a j x + a i +{\left (b j x + b i\right )} \log \left (\left ({\left (f x + e\right )}^{p} d\right )^{q} c\right )}{h x + g}, x\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((j*x+i)*(a+b*log(c*(d*(f*x+e)^p)^q))/(h*x+g),x, algorithm="fricas")

[Out]

integral((a*j*x + a*i + (b*j*x + b*i)*log(((f*x + e)^p*d)^q*c))/(h*x + g), x)

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (a + b \log{\left (c \left (d \left (e + f x\right )^{p}\right )^{q} \right )}\right ) \left (i + j x\right )}{g + h x}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((j*x+i)*(a+b*ln(c*(d*(f*x+e)**p)**q))/(h*x+g),x)

[Out]

Integral((a + b*log(c*(d*(e + f*x)**p)**q))*(i + j*x)/(g + h*x), x)

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (j x + i\right )}{\left (b \log \left (\left ({\left (f x + e\right )}^{p} d\right )^{q} c\right ) + a\right )}}{h x + g}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((j*x+i)*(a+b*log(c*(d*(f*x+e)^p)^q))/(h*x+g),x, algorithm="giac")

[Out]

integrate((j*x + i)*(b*log(((f*x + e)^p*d)^q*c) + a)/(h*x + g), x)